local TimeSpan = CS.System.TimeSpan

local M = {}

function M.elapsed1(ts)
    if type(ts) == "number" then
        ts = TimeSpan.FromSeconds(ts)
    end
    if ts.TotalHours > 1 then
        return ts:ToString("hh\\:mm\\:ss")
    end
    return ts:ToString("mm\\:ss")
end

return M
